package ym.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ym.pojo.HouseImg;

import java.util.List;

public interface HouseImgService {
    void add(HouseImg houseImg);

    void update(HouseImg houseImg);

    void delete(Integer id);

    HouseImg findById(Integer id);

    List<HouseImg> findAll();

    Page<HouseImg> search(String search, int page, int size);
    //根据房源查询所有
    List<HouseImg> findAllByHouseId(Integer houseId);
    //根据房源分页查询
    Page<HouseImg> searchByHouseId(Integer houseId,String search, int page, int size);
}
